import instance from "@/config/request"

//异步发请求，同步响应
export const save=async(canshu)=>{
    //axios发送的是异步请求
    //等到axios响应结果之后 我们的程序才会往下走
   return await instance.post('/user/register',canshu)
}

export const cha=async(canshu)=>{
    return await instance.post('/user/login',canshu)
}

export const saveupload=async(canshu)=>{
    return await instance.post('/user/saveupload',canshu)
}

export const chuanmima=async(mima)=>{
    return await instance.post('/user/password',mima)
}

export const gai=async(canshu)=>{
    return await instance.post('/user/saveinfo',canshu)
}